#ifndef _ENERGY_BAR_H_
#define _ENERGY_BAR_H_

#include "HUDObject.h"
#include "SFML\Graphics.hpp"

class EnergyBar : public HUDObject
{
public:
	EnergyBar(const std::string&, const sf::Vector2f&);
	~EnergyBar(void);

	void update();
	void draw(RenderManager*);

	void setPower(int);
	void setMaxPower(int);

private:
	int _maxPower;
	int _currentPower;

	sf::Sprite _top;
	sf::Sprite _middle;
	sf::Sprite _energyBar;
	sf::Sprite _bot;

	sf::Vector2f _position;
};


#endif // _ENERGY_BAR_H_